import {constantRoutes} from '@/router/index.js'
export default{
  namespaced:true,
  state(){
    return{
      menuList:[...constantRoutes]
    }
  },
  mutations:{
    updateMenuList(state,asyncRoutes){
      state.menuList = [...constantRoutes,...asyncRoutes]
    }
  }
}